import request from "@/utils/request"

enum Api {
  deleteBatchRemove = "/admin/acl/role/batchRemove",
  getRoleInformation = "/admin/acl/role/get",
  deleteRemoveOne = "/admin/acl/role/remove",
  addSave = "/admin/acl/role/save",
  updateSave = "/admin/acl/role/update",
  getRoleSave = "/admin/acl/role",
}

// 获取分页信息
export const reqGetRoleSaveList = (page: number, limit: number) => {
  return request.get<any, any>(Api.getRoleSave + `/${page}/${limit}`)
}

// 删除单个
export const reqDeleteBatchRemoveOne = (id: number) => {
  return request.delete<any, any>(Api.deleteRemoveOne + `/${id}`)
}
